#!/usr/bin/node

const log = console.log,
      filename = process.argv[3],
      filename2 = process.argv[2],
      fs = require('fs');

try{
  let num = 1;
  if(filename ==='-n'){
    fs.readFileSync(filename2).toString('utf8').split('\n').forEach((line)=>{
      log(`${num++}\t${line}`);
    });
  }
}catch(e){
  log(e.message);
}
